require 'scanner/states/state'
require 'scanner/states/string_state'
require 'scanner/states/start_state'

class QuoteState < State
  @token_type = :QuoteString

  def self.on_exit
    # Chop off the leading quote mark
    return nil
  end
  def self.next_state(char)
    next_state = case char
      when '"': StartState
      else StringState
    end
    return next_state
  end
end